package cn.felord.springboot.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

/**
 * 测试接口
 * @author Felordcn
 * @since 10:35
 **/

@RestController
@RequestMapping("/bar")
public class BarController {

    @GetMapping("/info")
    public Map<String, String> info() {
        Map<String, String> map = new HashMap<>(2);
        map.put("user", "felord.cn");
        map.put("time", LocalDateTime.now().toString());
        return map;
    }
}
